package org.mymail.mail;

import javax.mail.Authenticator;
import javax.mail.Session;
import org.mymail.config.GmailMailAuthenticator;
import org.mymail.config.SmtpMailProperties;

// Referenced classes of package org.mymail.mail:
//            MailSession

public class SmtpMailSession
    implements MailSession
{

    public SmtpMailSession()
    {
        p = new SmtpMailProperties();
        m = new GmailMailAuthenticator();
    }

    public Session createSession()
    {
        java.util.Properties p2 = p.loadProperties();
        Session session = Session.getInstance(p2, m);
        session.setDebug(true);
        return session;
    }

    SmtpMailProperties p;
    Authenticator m;
}